package com.ccc.scala.base10_implicit

object Implicit01 {
  def main(args: Array[String]): Unit = {

    // 隐式函数
    implicit def transform(d: Double): Int = d.toInt

    var d: Double = 2.000
    val i: Int = d
    println(i)
  }

}
